//
//  BluetoothManager.h
//  SHHCPhone
//
//  Created by sheng long on 14-6-29.
//  Copyright (c) 2014年 sheng long. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreBluetooth/CoreBluetooth.h>
#import "BaseViewController.h"
#import "BLEModel.h"

//设备蓝牙状态改变
#define BLUETOOTHMANAGER_STATE_CHANGE       @"BLUETOOTHMANAGER_STATE_CHANGEBLUETOOTHMANAGER_STATE_CHANGE"
//连接设备成功
#define BLUETOOTHMANAGER_LJSBCG             @"BLUETOOTHMANAGER_LJSBCGBLUETOOTHMANAGER_LJSBCG"
//连接设备失败
#define BLUETOOTHMANAGER_LJSBSB             @"BLUETOOTHMANAGER_LJSBSBBLUETOOTHMANAGER_LJSBSB"
//接收设备数据
#define BLUETOOTHMANAGER_JSSBSJ             @"BLUETOOTHMANAGER_JSSBSJBLUETOOTHMANAGER_JSSBSJ"

@interface BluetoothManager : NSObject<CBCentralManagerDelegate>

//
@property (nonatomic,readonly) CBCentralManager *CBManager;

@property (nonatomic,readonly) BLEModel *bleModel;

//显示在什么view里面
@property (nonatomic,assign) BaseViewController *showInBaseView;

//查找到的蓝牙设备
@property (nonatomic,retain) NSArray *peripheralArray;

//手动查找设备
-(void)connectCBManager;

////关闭设备页面
//-(void)closeView;

@end
